#pragma once
#include "base/bplustree.hpp"
#include "base/noncopyable.h"

namespace net_tools::base{
class Timeevent;
class Timebplustree : noncopyable{
 public:
  Timebplustree();
  ~Timebplustree() = default;
  void Insert_timeevent(Timeevent* p_timeevent);
  void Dotimeevent();
  timeval Get_min_time();
  bool Is_empty();
 private:
  detail::Bplustree<Timeevent*,timeval> bplustree_;
};

} // namespace net_tools::base